<?php $this->load->view('wedding/wedding_head');?>
    <script type="text/javascript" src="<?php echo base_url();?>js/jquery.form.js"></script>
    <script type="text/javascript">
	<!--
	$(function(){
		$(":checkbox").css('width', '10px'); 
		var checkedstr = '<?php echo isset($tag) ? $tag : "";?>'; 
    	if (checkedstr != "") {
			var checked_array = checkedstr.split(" "); 
    		$(":checkbox").each(function() {
    			for (var i = 0; i < checked_array.length; i++) {
					if ($(this).val() == checked_array[i]) {
						$(this).attr('checked', 'checked');
					}
				}	
            });
        }
	});
	//-->
	</script>
    <input type="hidden" id="page_code" value="3"/>
    <!-- begin: main content area #main -->
     <div id="main">
      <!-- begin: #col1 - first float column -->
      <div id="col1" role="complementary">
        <div class="my_box" style="margin-top: 10px;">
		<p class="box_title"><span>婚庆公司服务套餐管理</span></p>
			<div class="left_nav" style="margin: 20px 0 20px 10px;">
				<p>
					<img style="margin: 0 5px 0 5px;" src="<?php echo base_url()?>images/icon/add_s.png" /> <a href="#">套餐列表</a>
				</p>
				<p>
					<img style="margin: 0 5px 0 5px;" src="<?php echo base_url()?>images/icon/add_s.png" /> <a href="#">添加新套餐</a>
				</p>
				<p>
					<img style="margin: 0 5px 0 5px;" src="<?php echo base_url()?>images/icon/add_s.png" /> <a href="#">成为VIP</a>
				</p>
			</div>
		</div>
      </div>
      <!-- end: #col1 -->
      <!-- begin: #col3 static column -->
      <div id="col3" role="main">
        <div id="col3_content" class="clearfix">
           
           <div class="my_box">
            <p class="box_title"><span>婚庆公司服务套餐编辑</span></p>
          	<form action="<?php echo base_url();?>index.php/wedding/WeddingBigServiceAction/edit" method="post">
          		
          		
          		
	            <div style="color:red;margin:20px;"></div>  	
	          	<ul class="userInfo" style="margin-top:20px">
	          		
	          		<li>
	          			<span class="label">*套餐名称：</span>
		         		<input type="text" name="name" maxlength="50" value="<?php echo isset($wedding) ? $wedding['name'] : "" ?>"/> 
		         		<span class="moreInfo">必须填写</span>
		         		<?php echo form_error('name', '<span class="error">', '</span>'); ?>		
	         		</li>
	         		
	          		<li>
	          			<span class="label">*套餐价格：</span>
		         		<input type="text" name="price" maxlength="5" value="<?php echo isset($wedding) ? $wedding['price'] : "" ?>"/> 元
		         		<span class="moreInfo">必须填写价格</span>	
		         		<?php echo form_error('price', '<span class="error">', '</span>'); ?>		
	         		</li>
	         		
	          		<li>
	          			<span class="label">*套餐简介：</span>
		         		<input type="text" name="info"  value="<?php echo isset($wedding) ? $wedding['info'] : "" ?>"/> 
		         		<span class="moreInfo">必须填写</span>
		         		<?php echo form_error('info', '<span class="error">', '</span>'); ?>	
	         		</li>	          		
	          		
	          		<li>
	          			<span style="margin-left:40px; font-weight: bold">请选择套餐提供的服务</span>
	          			<?php echo form_error('tag', '<span class="error">', '</span>'); ?>
	          			<div style="margin-left:40px;">
	          			<p style="clear:both"> 
	          				<h3 style="font-size:13px;font-weight: bold">人员服务</h3>
		          			<input type="checkbox" name="tag[]"  value="主持人"/>主持人
		          			<input type="checkbox" name="tag[]"  value="化妆师"/>化妆师
		          			<input type="checkbox" name="tag[]"  value="摄像师"/>摄像师
		          			<input type="checkbox" name="tag[]"  value="摄影师"/>摄影师
		          			<input type="checkbox" name="tag[]"  value="婚礼督导"/>婚礼督导
	          			</p>
	          			
	          			<p> 
	          				<h3 style="font-size:13px;font-weight: bold">婚礼道具</h3>
		          			<input type="checkbox" name="tag[]"  value="气泡机"/>气泡机
		          			<input type="checkbox" name="tag[]"  value="冷烟火"/>冷烟火
		          			<input type="checkbox" name="tag[]"  value="许愿氦球"/>许愿氦球
		          			<input type="checkbox" name="tag[]"  value="烛台"/>烛台
		          			<input type="checkbox" name="tag[]"  value="杯塔"/>杯塔
		          			<input type="checkbox" name="tag[]"  value="花轿"/>花轿
		          			<input type="checkbox" name="tag[]"  value="礼炮"/>礼炮
	          			</p>
	          			
	          			
	          			<p> 
	          				<h3 style="font-size:13px;font-weight: bold">鲜花花艺</h3>
		          			<input type="checkbox" name="tag[]"  value="背景塑造"/>背景塑造
		          			<input type="checkbox" name="tag[]"  value="手捧花"/>手捧花
		          			<input type="checkbox" name="tag[]"  value="胸花"/>胸花
		          			<input type="checkbox" name="tag[]"  value="鲜花引路"/>鲜花引路
		          			<input type="checkbox" name="tag[]"  value="头车装饰"/>头车装饰
	          			</p>
	          			</div>
	          		</li>
	          	</ul>
	          	<input style="margin:0px 0 20px 60px;" type="submit" value="保存"/>
	          	<input style="margin:0px 0 20px 20px;" type="submit" value="返回列表"/>
          	</form>
           
          </div>
        </div>
        <div id="ie_clearing">&nbsp;</div>
        <!-- End: IE Column Clearing -->
      </div>
      <!-- end: #col3 -->
    </div>
   
    <!-- end: #main -->
<?php $this->load->view('user/footer');?>